-- GENERATED SPELL FOR [Savage Worg] --


function spell0_29735(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(42745,pUnit)
pUnit:RegisterEvent('Sorts_29735', 12282, 1)
end

function spell1_29735(pUnit, Event) --@Pounce,n/a--
pUnit:FullCastSpellOnTarget(55077,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29735', 6500, 1)
end

function Sorts_29735(pUnit, Event)
local choix_sorts_29735 = math.random(0, 1)
if choix_sorts_29735 == 0 then
pUnit:RegisterEvent('spell0_29735', 1, 1)
end
if choix_sorts_29735 == 1 then
pUnit:RegisterEvent('spell1_29735', 1, 1)
end
end

function mob29735_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29735', math.random(1500, 3000), 1)
end

function mob29735_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29735_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29735_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29735, 1, 'mob29735_Action')
RegisterUnitEvent(29735, 2, 'mob29735_Leave')
RegisterUnitEvent(29735, 3, 'mob29735_Kill')
RegisterUnitEvent(29735, 4, 'mob29735_Die')
